<?php if ( isset($this->product) ) { ?>
    <?php
        require_once('Zend/Currency.php');
        $currency = new Zend_Currency('cs_CZ');
    ?>
    
    <h2><?= $this->escape($this->product->translate("name")) ?></h2>
    <a href="<?=$this->publicUrl."Products/".$this->product->image; ?>" title="<?= $this->escape($this->product->translate("name")) ?>">
    	<img src="<?=$this->publicUrl."Products/Thumbs/".$this->product->image; ?>" alt="<?= $this->escape($this->product->translate("name")) ?>" />
    </a>
    <div><strong><?= $this->translate("Price") ?>: <?= $currency->toCurrency($this->product->price) ?></strong></div>
    <div><?= $this->translate("Category") ?>: <?= $this->escape($this->product->Category->translate('name')) ?></div>
    
    <?php if ( isset($this->user) ) { ?>
        <div><a href="<?= $this->url(array('controller' => 'user-basket', 'action' => 'add-basket-item', 'id' => $this->product->id, 'amount' => '1')) ?>" title="<?= $this->translate("Add To Basket") ?>"><?= $this->translate("Add To Basket") ?></a></div>    
    <?php } else { ?>
        <div><?= $this->translate("Log in to order") ?></div>
    <?php } ?>
    
    <p><?= $this->escape($this->product->translate('description')) ?></p>

    <?php } else { ?>
    <p><?= $this->translate("No product found") ?></p>
<?php } ?>